﻿using Soft;
using Soft.Data;
using Soft.Service;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RemotingDemo.Business
{
    [JobClassInfo(JobServiceMode.TimedTask, MesMethodFlag.PTM)]
    public class TestJobService : BaseTimedTask
    {
        public TestJobService() : base("Job测试")
        {
        }

        [JobMethodInfo(FunctionCode = "PPM0000001", Action = true, Explain = "测试")]
        public override Result Run(string param)
        {
            Console.WriteLine($"{nameof(TestJobService)} 执行，时间{DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss")}");
            return new Result();
        }
    }
}
